package com.wn.pettyloan.service.impl;

import com.wn.pettyloan.entity.DocumnetType;
import com.wn.pettyloan.mapper.DocumnetTypeMapper;
import com.wn.pettyloan.service.DocumentTypeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author ：Morsera
 * @date ：Created in 2022/12/12 15:08
 * @description：
 */
@Service
public class DocumentTypeServiceImpl implements DocumentTypeService {
    @Resource
    private DocumnetTypeMapper documnetTypeMapper;


    @Override
    public List<DocumnetType> selAll() {
        return documnetTypeMapper.selectAll();
    }

    @Override
    public List<DocumnetType> selectDocsTypeByProId(Integer productId) {
        return documnetTypeMapper.selectByProId(productId);
    }
}
